<!doctype html>
<html>
<head>
	<title>Test</title>
	<link rel="stylesheet" href="<?php echo URL; ?>public/css/font-awesome.min.css" />
	<link href="<?php echo URL; ?>public/css/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<?php echo URL; ?>public/js/jquery.js"></script>
	<script type="text/javascript" src="<?php echo URL; ?>public/js/custom.js"></script>
	<?php 

		if (isset($this->js)) {

			foreach ($this->js as $js) {
				echo '<script type="text/javascript" src="'.URL.'views/'.$js.'"></script>';
			}
		}

	?>
</head>
<body>

<?php Session::init(); ?>
<div id="header">
	<div id="main-nav">
		<ul class="group">
			<?php  if (Session::get('loggedIn') == false): ?>
				<li><a href="<?php echo URL; ?>index">Home</a></li>
				<li><a href="<?php echo URL; ?>help">Help</a></li>
			<?php endif;?>
			
			<?php  if (Session::get('loggedIn') == true): ?>
				<li><a href="<?php echo URL; ?>dashboard">Dashboard</a></li>
				<li><a href="<?php echo URL; ?>dashboard/logout">Logout</a></li>
				
				<?php if (Session::get('role') == 'owner'): ?>
					<li><a href="<?php echo URL; ?>user">User</a></li>
				<?php endif; ?>

			<?php else: ?>		
				<li><a href="<?php echo URL; ?>login">Login</a></li>
			<?php endif; ?>
		</ul>
	</div>
</div>
	
<div id="content">
	
	